home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util1 / yk211src.lha / Yak_2.11_Src / Include / ufortify.h < prev    next >
Text File  |  1995-10-18  |  1KB  |  36 lines

  1. /*
  2.  * FILE:
  3.  *   ufortify.h
  4.  *
  5.  * DESCRIPTION:
  6.  *   User options for fortify. Changes to this file require fortify.c to be
  7.  * recompiled, but nothing else.
  8.  */
  9.  
  10. #define FORTIFY_STORAGE
  11.  
  12. #define FORTIFY_BEFORE_SIZE      16  /* Bytes to allocate before block */
  13. #define FORTIFY_BEFORE_VALUE   0xA3  /* Fill value before block        */
  14.                       
  15. #define FORTIFY_AFTER_SIZE       16  /* Bytes to allocate after block  */
  16. #define FORTIFY_AFTER_VALUE    0xA5  /* Fill value after block         */
  17.  
  18. #define FILL_ON_MALLOC               /* Nuke out malloc'd memory       */
  19. #define FILL_ON_MALLOC_VALUE   0xA7  /* Value to initialize with       */
  20.  
  21. #define FILL_ON_FREE                 /* free'd memory is cleared       */
  22. #define FILL_ON_FREE_VALUE     0xA9  /* Value to de-initialize with    */
  23.  
  24. #define CHECK_ALL_MEMORY_ON_MALLOC  
  25. #define CHECK_ALL_MEMORY_ON_FREE   
  26. #define PARANOID_FREE              
  27.  
  28. #define WARN_ON_MALLOC_FAIL    /* A debug is issued on a failed malloc */
  29. #define WARN_ON_ZERO_MALLOC    /* A debug is issued on a malloc(0)     */
  30. #define WARN_ON_FALSE_FAIL     /* See Fortify_SetMallocFailRate        */
  31. #define WARN_ON_SIZE_T_OVERFLOW/* Watch for breaking the 64K limit in  */
  32.                                /* some braindead architectures...      */
  33.  
  34. #define FORTIFY_LOCK()   
  35. #define FORTIFY_UNLOCK()  
  36.